import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity()
export class Question {
	@PrimaryGeneratedColumn('uuid')
	question_id: string;

	@Column({ type: 'text', comment: '文档标识' })
	doc_id: string;

	@Column({ type: 'int', comment: '问题状态,1已解决,0未解决,2已解决待验收' })
	state: number;

	@Column({ type: 'text', comment: '问题描述' })
	message: string;

	@Column({ type: 'longtext', comment: '复现参数' })
	params: string;

	@Column({ type: 'text', comment: '提问者' })
	editor: string;

	@Column({ type: 'bigint', comment: '提问时间' })
	edit_time: number;

	@Column({ type: 'bigint', comment: '确认人', default: null })
	confirmor: string;

	@Column({ type: 'bigint', comment: '确认时间', default: null })
	confirm_time: number;

	@Column({ type: 'text', comment: '解决人', default: null })
	replier: string;

	@Column({ type: 'bigint', comment: '解决时间', default: null })
	replies_time: number;
}